package com.zhu.tool_test.datacenter.dto;


import com.linktopa.framework.common.model.response.ResultCode;

/**
 * TODO
 *
 * @author xuchenbing
 * @version 1.0
 * @date 20-12-15 下午4:34
 */
public class DcResultCode implements ResultCode {

    private boolean success;
    private int code;

    private String message;



    public DcResultCode(boolean success, int code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }
    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public boolean success() {
        return success;
    }

    @Override
    public int code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }




}
